home *** CD-ROM | disk | FTP | other *** search
/ Team Palmtops 7 / Palmtops_numero07.iso / WinCE / SDKWindowsCE / HandHeldPCPro30 / sdk.exe / Jupiter SDK / data1.cab / MFC / src / oledata.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1999-02-19  |  1.9 KB  |  68 lines

  1. // This is a part of the Microsoft Foundation Classes C++ library.
  2. // Copyright (C) 1992-1998 Microsoft Corporation
  3. // All rights reserved.
  4. //
  5. // This source code is only intended as a supplement to the
  6. // Microsoft Foundation Classes Reference and related
  7. // electronic documentation provided with the library.
  8. // See these sources for detailed information regarding the
  9. // Microsoft Foundation Classes product.
  10.  
  11. #include "stdafx.h"
  12.  
  13. #ifdef CoRegisterClassObject
  14. #undef CoRegisterClassObject
  15. #endif
  16.  
  17. #ifdef AFX_INIT_SEG
  18. #pragma code_seg(AFX_INIT_SEG)
  19. #endif
  20.  
  21. #if defined(_WIN32_WCE)
  22. #if !defined(_WIN32_WCE_NO_DELAYLOAD)
  23. #pragma comment(lib, WCE_OLE32_LIB)
  24. #pragma comment(lib, WCE_OLEAUT32_LIB)
  25. #pragma comment(lib, "commctrl.lib")
  26. #endif // _WIN32_WCE_NO_DELAYLOAD
  27. #else // _WIN32_WCE
  28. #pragma comment(lib, "ole32.lib")
  29. #pragma comment(lib, "oleaut32.lib")
  30. #pragma comment(lib, "oledlg.lib")
  31. #pragma comment(lib, "urlmon.lib")
  32. #pragma comment(lib, "shell32.lib")
  33. #pragma comment(lib, "comctl32.lib")
  34. #pragma comment(lib, "advapi32.lib")
  35. #endif // _WIN32_WCE
  36.  
  37. /////////////////////////////////////////////////////////////////////////////
  38. // _AFX_OLE_STATE implementation
  39.  
  40. _AFX_OLE_STATE::_AFX_OLE_STATE()
  41. {
  42.     // Note: it is only necessary to intialize non-zero data.
  43. }
  44.  
  45. _AFX_OLE_STATE::~_AFX_OLE_STATE()
  46. {
  47. #if !defined(_WIN32_WCE_NO_DELAYLOAD)
  48.     // unload OLE DLLs if loaded
  49. #ifdef _AFXDLL
  50.     if (m_hInstOLEDLG != NULL)
  51.         FreeLibrary(m_hInstOLEDLG);
  52.     if (m_hInstOLEAUT != NULL)
  53.         FreeLibrary(m_hInstOLEAUT);
  54.     if (m_hInstOLE != NULL)
  55.         FreeLibrary(m_hInstOLE);
  56.     if (m_hInstUrlMon != NULL)
  57.         ::FreeLibrary(m_hInstUrlMon);
  58. #endif //_AFXDLL
  59. #endif // _WIN32_WCE_NO_DELAYLOAD
  60. }
  61.  
  62. #pragma warning(disable: 4074)
  63. #pragma init_seg(lib)
  64.  
  65. PROCESS_LOCAL(_AFX_OLE_STATE, _afxOleState)
  66.  
  67. /////////////////////////////////////////////////////////////////////////////
  68.